<?php
/**
 * Created by PhpStorm.
 * User: xuewl
 * Date: 2018/1/3
 * Time: 20:12
 */

namespace app\product\controller\admin;
use app\admin\controller\Backend;

class OrderComplain extends Backend
{

    protected $model;

    public function _initialize()
    {
        parent::_initialize();
        $this->model = model('product/product_order_complain', 'service');
    }

    public function do_result() {
        $result = $this->model->doresult($this->request->param('id'));
        if(!$result) {
            return $this->error($this->model->getError());
        } else {
            return $this->success('操作成功');
        }
    }
}